<%@ page contentType="text/html; charset=utf-8" language="java"%>
<%@ include file="/jsp/common/index.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <title>新建立系统用户</title>
		<%@ include file="/jsp/common/js.jsp"%>
		<%@ include file="/jsp/common/css.jsp"%>
		<base target="_self">
		<script language="javascript">
		<!--
		   function dataInsertOrUpdate()
		   {
		       if(getlength(g("vo.employeeNo").value)<1)
		       {
		           alert("请输入员工编号");
		           return;
		       }
		       if(getlength(g("vo.name").value)<1)
		       {
		           alert("请输入姓名");
		           return;
		       }
		       if(getlength(g("vo.password").value)<1)
		       {
		           alert("请输入密码");
		           return;
		       }
		       if(getlength(g("againpassword").value)<1)
		       {
		           alert("请输入重复密码");
		           return;
		       }
		       if(getlength(g("vo.password").value)<6)
		       {
		           alert("密码太短，请输入密码");
		           return;
		       }
		       if(getlength(g("againpassword").value)<6)
		       {
		           alert("重复密码太短，请输入重复密码");
		           return;
		       }
		       if(g("vo.password").value != g("againpassword").value){
		    	   alert("密码输入错误");
		           return;
		       }
		       g("form").submit();
		   }
		-->
		</script>
	</head>

	<body class="cbody">
		<%@ include file="/jsp/page/pagehead.jsp"%>
		<br/>
		<s:form id="form"  action="insert" theme="simple">  
		<input type="hidden" id="vo.type" name="vo.type" value="0"/>
		<table width="90%" border="0" cellpadding="0" cellspacing="0" class="inputarea" align="center">
		<thead>
		    <tr class="detailrow">
		       <td class="tleft" colspan="3">&nbsp;新建系统用户</td>
		    </tr>
		</thead>
			<tr class="detailrow">
				<td class="tright" width="15%">
					员工编号&nbsp;
				</td>
				<td class="tleft" width="50%">
					<s:textfield label="员工编号：" name="vo.employeeNo" id="vo.employeeNo" maxlength= "20"  theme="simple" cssClass="largeinput"/>
				</td>
				<td class="tleft">
				   &nbsp;最长20个字符
				</td>
			</tr>
			
			<tr class="detailrow">
				<td class="tright" width="15%">
					姓名&nbsp;
				</td>
				<td class="tleft" width="50%">
					 <s:textfield label="姓名：" name="vo.name" id="vo.name" maxlength= "50"  theme="simple" cssClass="largeinput"/>  
				</td>
				<td class="tleft">
				   &nbsp;最长25个汉字
				</td>
			</tr>
			
			
			<tr class="detailrow">
				<td class="tright" width="15%">
					密码&nbsp;
				</td>
				<td class="tleft" width="50%">
					<s:password label="密码：" name="vo.password" id="vo.password" maxlength= "20"  theme="simple" cssClass="largeinput"/>
				</td>
				<td class="tleft">
				   &nbsp;最短6字符 ,最长20字符 
				</td>
			</tr>
			
			<tr class="detailrow">
				<td class="tright" width="15%">
					重复密码&nbsp;
				</td>
				<td class="tleft" width="50%">
					<s:password label="重复密码：" name="againpassword" id="againpassword" maxlength= "20"  theme="simple" cssClass="largeinput"/>
				</td>
				<td class="tleft">
				   &nbsp;最短6字符 ,最长20字符 
				</td>
			</tr>	

			<tr>
			    <td>
			       &nbsp;
			    </td>
				<td class="tcenter">
					<input type="button" class="wbt" value="新建" id="insertButton" onclick="dataInsertOrUpdate();"/>
					&nbsp;&nbsp;
					<input type="button" class="wbt" value="列表" id="listButton" onclick="window.location='beforeSelect.htm';"/>
				</td>
				<td>
				   &nbsp;
				</td>
			</tr>

            <tr>
				<td cospan="3" class="tcenter">
					&nbsp;
				</td>
			</tr>
 
		</table>
        </s:form>



		<%@ include file="/jsp/page/foot.jsp"%>
	</body>
</html>
